-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chart: Allow to optout CRD installation #4555
Conversation
DNS Endpoint crd might be already part of a different chart. Allow to skip installation of CRD Signed-off-by: Dinar Valeev <k0da@opensuse.org>
Hi @k0da. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @stevehipwell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @k0da but this behaviour is already supported via the --skip-crds
Helm flag (which IMHO should be the default behaviour for Helm but that's another topic).
The code change in your PR here would leave the CRD being installed via the native Helm support (it's in the crds folder) but would also attempt to install it via the legacy Helm v2 template method. As a best case this is just very confusing as the CRD will be installed no matter how the value is set (unless the --skip-crds
flag is also set), worst case involves data loss and potential downtime (there is a reason why Helm chooses not to manage CRDs).
I have sympathy for people who are having issues with the addition of the CRD to the chart (see the comments on #4322 where I push back) as it does make the use more complex. However Helm based tooling should be able to ignore chart CRDs to allow them to be installed separately, as this is a best practice.
Please let me know if I've missed anything otherwise I'll close this PR.
@stevehipwell I'd love to use helm Although your point makes sense. I'm looking for a best way to resolve conflict between two charts. |
@k0da I think your issue here is with Fleet as I've just had a quick look at the docs and I can't see any way to set the RE ExternalDNS you can open an issue in the repo to remove the CRD from the Helm chart; but I don't think there is going to be much support for this as this looks to be a tooling issue that isn't present in the native Helm use nor in other common tools (e.g. Argo CD). |
@stevehipwell I'll look around. To gather more prove points. Will reopen if I'll find more prove points. Thanks for review. |
DNS Endpoint crd might be already part of a different chart. Allow to skip installation of CRD
Description
Fixes #ISSUE
Checklist